<?php
    function getComments() {
        $con = mysql_connect("atomi.db.8753367.hostedresource.com","atomi","v0yV10laSFqeS");
        if (!$con) {
            die('Could not connect: ' . mysql_error());
        }
        
        mysql_select_db("atomi", $con);
        
        $query = "SELECT * FROM comments";
        
        $qry_result = mysql_query($query) or die(mysql_error());
        
        return $qry_result;
    }
?>
